import {UploadRawFile} from "element-plus";

export class EducationInfo {
    public degree = ""
    public schoolName = ""
    public date: Array<Date> | null = null
    public schoolLocation: Array<number> | null = null
    public subject = ""
    public type = 0
}

export class WorkInfo {
    public date: Array<Date> | null = null
    public companyName = ""
    public industry = ""
    public companyLocation: Array<number> | null = null
    public jobName = ""
    public jobDuty = ""
}

export class ProjectInfo {
    public startDate: Date | null = null
    public endDate: Date | null = null
    public tillNow = false
    public projectName = ""
    public job = ""
    public projectDescription = ""
    public jobDuty = ""
}

export class PersonalSkill{
    public name = ""
    public degree : number | null = null
}

export class Userinfo {
    public file: UploadRawFile | null = null
    public name = ""
    public nickname = ""
    public sex = ""
    public phonePre = {value: "China", label: "中国", callingCode: "86"}
    public phoneNumber: number | null = null
    public email = ""
    public birthdate: Date | null = null
    public country = {value: "China", label: "中国", callingCode: "86"}
    public location: Array<number> | null = null
    public nativePlace: Array<number> | null = null
    public ethnic = ""
    public imChoice = ""
    public imNumber: number | null = null
    public EducationExp: Array<EducationInfo> = [new EducationInfo()]
    public WorkExp: Array<WorkInfo> = []
    public ProjectExp : Array<ProjectInfo> = []
    public PersonalSkills: Array<PersonalSkill> = []
    public JobIntention : Array<string> = []
    public SelfAssessment = ""
}